<html>
<!-- =====================================================================

  File:      Generated file for Adventure Works Cycles Storefront Sample
  Summary:   Self-documentation for application
  Date:	     June 16, 2003

=====================================================================

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) 2003 Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= -->
<head>
  <link rel=stylesheet href=style.css>
</head>
<body>
<div class=SourcePanel style="font-size:12">
<pre style="background-color:white">
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Collections</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">ComponentModel</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Data</span><span style="color: #4444FF">;</span>
<span style="color: #0000FF"><strong>using</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Collections</span>.<span style="color: #2040a0">Generic</span><span style="color: #4444FF">;</span>

<span style="color: #008000">/* =====================================================================

  File:      ReviewWatchForm.cs for Adventure Works Cycles ReviewWatcher Sample
  Summary:   Defines the user interface for displaying new product reviews as they are posted
  Date:	     September 17, 2003

---------------------------------------------------------------------

  This file is part of the Microsoft SQL Server Code Samples.
  Copyright (C) 2003 Microsoft Corporation.  All rights reserved.

This source code is intended only as a supplement to Microsoft
Development Tools and/or on-line documentation.  See these other
materials for detailed information regarding Microsoft code samples.

THIS CODE AND INFORMATION ARE PROVIDED &quot;AS IS&quot; WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

======================================================= */</span>

<span style="color: #0000FF"><strong>namespace</strong></span> <span style="color: #2040a0">Microsoft</span>.<span style="color: #2040a0">Samples</span>.<span style="color: #2040a0">SqlServer</span>
<span style="color: #4444FF"><strong>{</strong></span>
	<span style="color: #008000">/// &lt;summary&gt;</span>
	<span style="color: #008000">/// This class defines the user interface for display new product reviews as they are posted</span>
	<span style="color: #008000">/// &lt;/summary&gt;</span>
	<span style="color: #0000FF"><strong>public</strong></span> <span style="color: #0000FF"><strong>class</strong></span> <span style="color: #2040a0">ReviewWatchForm</span><span style="color: #4444FF">:</span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Form</span>
	<span style="color: #4444FF"><strong>{</strong></span>
		<span style="color: #008000">// UI controls for the form</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">PictureBox</span> <span style="color: #2040a0">pictureBox1</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//The heading decoration</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Label</span> <span style="color: #2040a0">ReviewContent</span><span style="color: #4444FF">;</span>		<span style="color: #008000">//The text of the product review selected</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ListView</span> <span style="color: #2040a0">ReviewList</span><span style="color: #4444FF">;</span>		<span style="color: #008000">//A table of product review summaries</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span> <span style="color: #2040a0">reviewerName</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//A column for the review list for the customer's name</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span> <span style="color: #2040a0">reviewDate</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//A column for the review list for when the review was written</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ImageList</span> <span style="color: #2040a0">ratingsImageList</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//A collection of graphical images which represent the various ratings.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span> <span style="color: #2040a0">productName</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//A column for the review list which identifies the product reviewed.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span> <span style="color: #2040a0">rating</span><span style="color: #4444FF">;</span>		<span style="color: #008000">//The column containing the image which represents the ranking</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">ComponentModel</span>.<span style="color: #2040a0">IContainer</span> <span style="color: #2040a0">components</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//Internal to WinForms.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Button</span> <span style="color: #2040a0">ClearButton</span><span style="color: #4444FF">;</span>		<span style="color: #008000">//The control used to empty the table and reset the display.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Label</span> <span style="color: #2040a0">HelpLabel</span><span style="color: #4444FF">;</span>			<span style="color: #008000">//Some information about how to use the application.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">List</span><span style="color: #4444FF">&lt;</span><span style="color: #2040a0">String</span><span style="color: #4444FF">&gt;</span> <span style="color: #2040a0">commentList</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">List</span><span style="color: #4444FF">&lt;</span><span style="color: #2040a0">String</span><span style="color: #4444FF">&gt;</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//The review content pulled from the database.</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #2040a0">ReviewWatch</span> <span style="color: #2040a0">revWatch</span><span style="color: #4444FF">;</span>							<span style="color: #008000">//The data access component which updates the form when new </span>
		<span style="color: #008000">//product reviews are inserted into the AdventureWorks database.</span>
		<span style="color: #008000">//We must retain this so it is not GCed, and thus the </span>
		<span style="color: #008000">//dependency would be GCed as well.</span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">///		This form is used to display new product reviews which have been added to the AdventureWorks database.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #0000FF"><strong>public</strong></span> <span style="color: #2040a0">ReviewWatchForm</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #008000">//</span>
			<span style="color: #008000">// Required for Windows Form Designer support</span>
			<span style="color: #008000">//</span>
			<span style="color: #2040a0">InitializeComponent</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">SmallImageList</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">ratingsImageList</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">View</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">View</span>.<span style="color: #2040a0">Details</span><span style="color: #4444FF">;</span>					<span style="color: #008000">//For this application, the only view which is interesting is the detail view.</span>
			<span style="color: #2040a0">revWatch</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">ReviewWatch</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>	<span style="color: #008000">//Create an instance of the class which will monitor changes to </span>

			<span style="color: #008000">//the ProductReview table.  Provide this form for callbacks.</span>
			<span style="color: #2040a0">revWatch</span>.<span style="color: #2040a0">WatchForReviews</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>						<span style="color: #008000">//Set up the initial SqlDependency class which will begin monitoring of</span>
			<span style="color: #008000">//the ProductReview table</span>
		<span style="color: #4444FF"><strong>}</strong></span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">/// Clean up any resources being used.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #0000FF"><strong>protected</strong></span> <span style="color: #2040a0">override</span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">Dispose</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>bool</strong></span> <span style="color: #2040a0">disposing</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #0000FF"><strong>if</strong></span> <span style="color: #4444FF">(</span><span style="color: #2040a0">disposing</span><span style="color: #4444FF">)</span>
			<span style="color: #4444FF"><strong>{</strong></span>
				<span style="color: #0000FF"><strong>if</strong></span> <span style="color: #4444FF">(</span><span style="color: #2040a0">components</span> <span style="color: #4444FF">!</span><span style="color: #4444FF">=</span> <span style="color: #2040a0">null</span><span style="color: #4444FF">)</span>
				<span style="color: #4444FF"><strong>{</strong></span>
					<span style="color: #2040a0">components</span>.<span style="color: #2040a0">Dispose</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
				<span style="color: #4444FF"><strong>}</strong></span>
			<span style="color: #4444FF"><strong>}</strong></span>

			<span style="color: #2040a0">base</span>.<span style="color: #2040a0">Dispose</span><span style="color: #4444FF">(</span><span style="color: #2040a0">disposing</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
		<span style="color: #4444FF"><strong>}</strong></span>

<span style="color: #0000ff"><strong>		#region Windows Form Designer generated code</strong></span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">/// Required method for Designer support - do not modify</span>
		<span style="color: #008000">/// the contents of this method with the code editor.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">InitializeComponent</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">components</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">ComponentModel</span>.<span style="color: #2040a0">Container</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #2040a0">System</span>.<span style="color: #2040a0">Resources</span>.<span style="color: #2040a0">ResourceManager</span> <span style="color: #2040a0">resources</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Resources</span>.
			<span style="color: #2040a0">ResourceManager</span><span style="color: #4444FF">(</span><span style="color: #2040a0">typeof</span><span style="color: #4444FF">(</span><span style="color: #2040a0">ReviewWatchForm</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">PictureBox</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ListView</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">rating</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">productName</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewerName</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewDate</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ColumnHeader</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Label</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">ImageList</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.
																	   <span style="color: #2040a0">components</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Button</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">Label</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">System</span>.<span style="color: #2040a0">ComponentModel</span>.<span style="color: #2040a0">ISupportInitialize</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span>.
			<span style="color: #2040a0">BeginInit</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">SuspendLayout</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// pictureBox1</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">BackgroundImage</span> <span style="color: #4444FF">=</span>
			<span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Image</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #2040a0">resources</span>.
																	   <span style="color: #2040a0">GetObject</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;pictureBox1.BackgroundImage&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">Image</span> <span style="color: #4444FF">=</span> <span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Image</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #2040a0">resources</span>.
															 <span style="color: #2040a0">GetObject</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;pictureBox1.Image&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">Location</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Point</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span>, <span style="color: #4444FF">-</span><span style="color: #FF0000">2</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;pictureBox1&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">Size</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">906</span>, <span style="color: #FF0000">49</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">TabIndex</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">0</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">TabStop</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>false</strong></span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span>.<span style="color: #2040a0">WaitOnLoad</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>false</strong></span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// ReviewList</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Columns</span>.<span style="color: #2040a0">AddRange</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.
			<span style="color: #2040a0">ColumnHeader</span><span style="color: #4444FF">[</span><span style="color: #4444FF">]</span> <span style="color: #4444FF"><strong>{</strong></span>
				<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">rating</span>, <span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">productName</span>, <span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewerName</span>, <span style="color: #0000FF"><strong>this</strong></span>.
																  <span style="color: #2040a0">reviewDate</span>
			<span style="color: #4444FF"><strong>}</strong></span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">FullRowSelect</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>true</strong></span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">GridLines</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>true</strong></span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Location</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Point</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span>, <span style="color: #FF0000">47</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">MultiSelect</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>false</strong></span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;ReviewList&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Size</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">538</span>, <span style="color: #FF0000">537</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">TabIndex</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">1</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">View</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.<span style="color: #2040a0">View</span>.<span style="color: #2040a0">Details</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">SelectedIndexChanged</span> <span style="color: #4444FF">+</span><span style="color: #4444FF">=</span>
			<span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">EventHandler</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.
																			<span style="color: #2040a0">ReviewList_SelectedIndexChanged</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// rating</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">rating</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Rating&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">rating</span>.<span style="color: #2040a0">Width</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">87</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// productName</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">productName</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Product&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">productName</span>.<span style="color: #2040a0">Width</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">188</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// reviewerName</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewerName</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Reviewer&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewerName</span>.<span style="color: #2040a0">Width</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">122</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// reviewDate</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewDate</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Date&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">reviewDate</span>.<span style="color: #2040a0">Width</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">135</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// ReviewContent</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">BackColor</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">SystemColors</span>.<span style="color: #2040a0">Window</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Font</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Font</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;Verdana&quot;</span>, <span style="color: #FF0000">9.75F</span>,
															  <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.
															  <span style="color: #2040a0">FontStyle</span>.<span style="color: #2040a0">Regular</span>,
															  <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.
															  <span style="color: #2040a0">GraphicsUnit</span>.
															  <span style="color: #2040a0">Point</span>,
															  <span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">byte</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Location</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Point</span><span style="color: #4444FF">(</span><span style="color: #FF0000">540</span>, <span style="color: #FF0000">47</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;ReviewContent&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Size</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">364</span>, <span style="color: #FF0000">332</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">TabIndex</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">2</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// ratingsImageList</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">ImageSize</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">75</span>, <span style="color: #FF0000">13</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">ImageStream</span> <span style="color: #4444FF">=</span> <span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">System</span>.<span style="color: #2040a0">Windows</span>.<span style="color: #2040a0">Forms</span>.
			<span style="color: #2040a0">ImageListStreamer</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #2040a0">resources</span>.<span style="color: #2040a0">GetObject</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;ratingsImageList.ImageStream&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">TransparentColor</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Color</span>.
													 <span style="color: #2040a0">Transparent</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">Images</span>.<span style="color: #2040a0">SetKeyName</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span>, <span style="color: #444444">&quot;reviewrating1.gif&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">Images</span>.<span style="color: #2040a0">SetKeyName</span><span style="color: #4444FF">(</span><span style="color: #FF0000">1</span>, <span style="color: #444444">&quot;reviewrating2.gif&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">Images</span>.<span style="color: #2040a0">SetKeyName</span><span style="color: #4444FF">(</span><span style="color: #FF0000">2</span>, <span style="color: #444444">&quot;reviewrating3.gif&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">Images</span>.<span style="color: #2040a0">SetKeyName</span><span style="color: #4444FF">(</span><span style="color: #FF0000">3</span>, <span style="color: #444444">&quot;reviewrating4.gif&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ratingsImageList</span>.<span style="color: #2040a0">Images</span>.<span style="color: #2040a0">SetKeyName</span><span style="color: #4444FF">(</span><span style="color: #FF0000">4</span>, <span style="color: #444444">&quot;reviewrating5.gif&quot;</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// ClearButton</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span>.<span style="color: #2040a0">Location</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Point</span><span style="color: #4444FF">(</span><span style="color: #FF0000">22</span>, <span style="color: #FF0000">592</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;ClearButton&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span>.<span style="color: #2040a0">TabIndex</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">3</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Clear&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span>.<span style="color: #2040a0">Click</span> <span style="color: #4444FF">+</span><span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">EventHandler</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.
															  <span style="color: #2040a0">ClearButton_Click</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// HelpLabel</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">BackColor</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">SystemColors</span>.<span style="color: #2040a0">Info</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">Font</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Font</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;Verdana&quot;</span>, <span style="color: #FF0000">9.75F</span>,
														  <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.
														  <span style="color: #2040a0">FontStyle</span>.<span style="color: #2040a0">Regular</span>,
														  <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.
														  <span style="color: #2040a0">GraphicsUnit</span>.<span style="color: #2040a0">Point</span>,
														  <span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">byte</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">Location</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Point</span><span style="color: #4444FF">(</span><span style="color: #FF0000">542</span>, <span style="color: #FF0000">446</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;HelpLabel&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">Size</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">360</span>, <span style="color: #FF0000">69</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">TabIndex</span> <span style="color: #4444FF">=</span> <span style="color: #FF0000">4</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span>
			<span style="color: #444444">&quot;Add a product review using the Adventure Works Cycles Storefront.  A summary of t&quot;</span> <span style="color: #4444FF">+</span>
								  <span style="color: #444444">&quot;he review should appear in the table to the left.  Select the review to see the &quot;</span> <span style="color: #4444FF">+</span>
								  <span style="color: #444444">&quot;review comments above.&quot;</span><span style="color: #4444FF">;</span>

			<span style="color: #008000">// </span>
			<span style="color: #008000">// ReviewWatchForm</span>
			<span style="color: #008000">// </span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClientSize</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Size</span><span style="color: #4444FF">(</span><span style="color: #FF0000">905</span>, <span style="color: #FF0000">619</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Controls</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">HelpLabel</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Controls</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ClearButton</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Controls</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewContent</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Controls</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ReviewList</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Controls</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Font</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">Font</span><span style="color: #4444FF">(</span><span style="color: #444444">&quot;Verdana&quot;</span>, <span style="color: #FF0000">8.25F</span>,
												<span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">FontStyle</span>.
												<span style="color: #2040a0">Regular</span>,
												<span style="color: #2040a0">System</span>.<span style="color: #2040a0">Drawing</span>.<span style="color: #2040a0">GraphicsUnit</span>.
												<span style="color: #2040a0">Point</span>, <span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">byte</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #FF0000">0</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Name</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;ReviewWatchForm&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;Review Watcher&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #4444FF">(</span><span style="color: #4444FF">(</span><span style="color: #2040a0">System</span>.<span style="color: #2040a0">ComponentModel</span>.<span style="color: #2040a0">ISupportInitialize</span><span style="color: #4444FF">)</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">pictureBox1</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span>.
			<span style="color: #2040a0">EndInit</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #0000FF"><strong>this</strong></span>.<span style="color: #2040a0">ResumeLayout</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>false</strong></span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
		<span style="color: #4444FF"><strong>}</strong></span>
<span style="color: #0000ff"><strong>		#endregion</strong></span>

		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">/// The main entry point for the application.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #4444FF">[</span><span style="color: #2040a0">STAThread</span><span style="color: #4444FF">]</span>
		<span style="color: #0000FF"><strong>static</strong></span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">Main</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #2040a0">Application</span>.<span style="color: #2040a0">EnableVisualStyles</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">Application</span>.<span style="color: #2040a0">Run</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">ReviewWatchForm</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
		<span style="color: #4444FF"><strong>}</strong></span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">///		The event handler which is called when the user clicks on a row in the ReviewList.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;sender&quot;&gt;Who sent the event&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;e&quot;&gt;Additional information about the event&lt;/param&gt;</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">ReviewList_SelectedIndexChanged</span><span style="color: #4444FF">(</span><span style="color: #2040a0">object</span> <span style="color: #2040a0">sender</span>,
													 <span style="color: #2040a0">System</span>.<span style="color: #2040a0">EventArgs</span> <span style="color: #2040a0">e</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #0000FF"><strong>if</strong></span> <span style="color: #4444FF">(</span><span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">SelectedIndices</span>.<span style="color: #2040a0">Count</span> <span style="color: #4444FF">&gt;</span> <span style="color: #FF0000">0</span><span style="color: #4444FF">)</span>
			<span style="color: #4444FF"><strong>{</strong></span>
				<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #2040a0">commentList</span><span style="color: #4444FF">[</span><span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">SelectedIndices</span><span style="color: #4444FF">[</span><span style="color: #FF0000">0</span><span style="color: #4444FF">]</span><span style="color: #4444FF">]</span><span style="color: #4444FF">;</span>
			<span style="color: #4444FF"><strong>}</strong></span>
			<span style="color: #0000FF"><strong>else</strong></span>
			<span style="color: #4444FF"><strong>{</strong></span>
				<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;&quot;</span><span style="color: #4444FF">;</span>
			<span style="color: #4444FF"><strong>}</strong></span>
		<span style="color: #4444FF"><strong>}</strong></span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">///		The signature of the method for the callback which adds a row to the ReviewList table, and adds</span>
		<span style="color: #008000">///		the review content to the commentList collection.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #0000FF"><strong>public</strong></span> <span style="color: #2040a0">delegate</span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">AddReviewerRow</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>int</strong></span> <span style="color: #2040a0">rating</span>, <span style="color: #2040a0">String</span> <span style="color: #2040a0">productName</span>,
											<span style="color: #2040a0">String</span> <span style="color: #2040a0">reviewer</span>,
											<span style="color: #2040a0">String</span> <span style="color: #2040a0">dateOfReview</span>,
											<span style="color: #2040a0">String</span> <span style="color: #2040a0">comments</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">///		The method which matches the signature above, and which adds a row to the ReviewList table and adds the </span>
		<span style="color: #008000">///		review content to the commentList collection.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;rating&quot;&gt;The ranking of the review&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;productName&quot;&gt;Which product&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;reviewer&quot;&gt;Who reviewed the product&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;dateOfReview&quot;&gt;When they reviewed it&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;comments&quot;&gt;What they had to say about the product&lt;/param&gt;</span>
		<span style="color: #0000FF"><strong>public</strong></span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">AddRowToList</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>int</strong></span> <span style="color: #2040a0">rating</span>, <span style="color: #2040a0">String</span> <span style="color: #2040a0">productName</span>,
								 <span style="color: #2040a0">String</span> <span style="color: #2040a0">reviewer</span>, <span style="color: #2040a0">String</span> <span style="color: #2040a0">dateOfReview</span>,
								 <span style="color: #2040a0">String</span> <span style="color: #2040a0">comments</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #2040a0">ListViewItem</span> <span style="color: #2040a0">test</span> <span style="color: #4444FF">=</span> <span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">ListViewItem</span><span style="color: #4444FF">(</span><span style="color: #0000FF"><strong>new</strong></span> <span style="color: #2040a0">String</span><span style="color: #4444FF">[</span><span style="color: #4444FF">]</span> <span style="color: #4444FF"><strong>{</strong></span> <span style="color: #444444">&quot;&quot;</span>,
																<span style="color: #2040a0">productName</span>,
																<span style="color: #2040a0">reviewer</span>, <span style="color: #2040a0">dateOfReview</span>
			<span style="color: #4444FF"><strong>}</strong></span>, <span style="color: #2040a0">rating</span> <span style="color: #4444FF">-</span> <span style="color: #FF0000">1</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>

			<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Items</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #2040a0">test</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">commentList</span>.<span style="color: #2040a0">Add</span><span style="color: #4444FF">(</span><span style="color: #2040a0">comments</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
		<span style="color: #4444FF"><strong>}</strong></span>
		<span style="color: #008000">/// &lt;summary&gt;</span>
		<span style="color: #008000">///		The event handler which is invoked when the user presses the Clear button.  This </span>
		<span style="color: #008000">///     resets the user interface to the empty state.</span>
		<span style="color: #008000">/// &lt;/summary&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;sender&quot;&gt;Who sent the event&lt;/param&gt;</span>
		<span style="color: #008000">/// &lt;param name=&quot;e&quot;&gt;Additional information about the event&lt;/param&gt;</span>
		<span style="color: #0000FF"><strong>private</strong></span> <span style="color: #0000FF"><strong>void</strong></span> <span style="color: #2040a0">ClearButton_Click</span><span style="color: #4444FF">(</span><span style="color: #2040a0">object</span> <span style="color: #2040a0">sender</span>, <span style="color: #2040a0">System</span>.<span style="color: #2040a0">EventArgs</span> <span style="color: #2040a0">e</span><span style="color: #4444FF">)</span>
		<span style="color: #4444FF"><strong>{</strong></span>
			<span style="color: #2040a0">ReviewList</span>.<span style="color: #2040a0">Items</span>.<span style="color: #2040a0">Clear</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">commentList</span>.<span style="color: #2040a0">Clear</span><span style="color: #4444FF">(</span><span style="color: #4444FF">)</span><span style="color: #4444FF">;</span>
			<span style="color: #2040a0">ReviewContent</span>.<span style="color: #2040a0">Text</span> <span style="color: #4444FF">=</span> <span style="color: #444444">&quot;&quot;</span><span style="color: #4444FF">;</span>
		<span style="color: #4444FF"><strong>}</strong></span>
	<span style="color: #4444FF"><strong>}</strong></span>
<span style="color: #4444FF"><strong>}</strong></span>

</pre>
